#define _CRT_SECURE_NO_WARNINGS 1
#include "list.h"
void Test1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPrint(plist);
}

void Test2()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushFront(plist, 100);
	LTPushFront(plist, 200);
	LTPushFront(plist,300);
	LTPrint(plist);
	LTPopFront(plist);
	LTPrint(plist);

}
void Test3()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTNode* pos=LTFind(plist, 3);
	if (pos==NULL)
	{
		perror("pos NULL");
	}
	LTInsert(pos, 100);
	LTPrint(plist);
	LTErase(pos);
	LTPrint(plist);
}
int main()
{
	//Test1();
	//Test2();
	Test3();
	return 0;
}